package com.xy.gateway.service.impl;


import java.util.List;
import java.util.Map;
import java.util.Date;
import com.xy.core.util.BeanUtil;
import com.xy.common.page.Pagination;
import com.xy.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.xy.gateway.dao.ParadictDao;
import com.xy.gateway.model.Paradict;
import com.xy.gateway.service.ParadictService;

@Service
@Transactional
public class ParadictServiceImpl extends BaseServiceImpl<Paradict> implements
		ParadictService {
	private ParadictDao paradictDao;

	public ParadictServiceImpl(ParadictDao paramAppRoleDao) {
		super(paramAppRoleDao);
		this.paradictDao = paramAppRoleDao;
	}

	@Override
	public boolean checkExist(String paraName, String paraValue) {
		return paradictDao.checkExist("Paradict", paraName, paraValue);
	}

	@Override
	public List<Paradict> getParadict(Map<String, Object> map) {
		return paradictDao.getParadict(map);
	}
	@Override
	public Pagination getParadictByPage(Map<String, Object> map, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		return paradictDao.getParadictByPage(map, pageNo, pageSize);
	}
	 
   @Override
	public Paradict save(Paradict paradict) {return super.save(paradict);}
}